package com.woniu.entity;

import com.fasterxml.jackson.annotation.JsonRawValue;
import org.springframework.data.relational.core.mapping.Column;

public class UserAnswer {
    private int id;
    private int userId;
    private int videoId;
    @Column("test")
    @JsonRawValue
    private String test;

    @Override
    public String toString() {
        return "UserAnswer{" +
                "id=" + id +
                ", userId=" + userId +
                ", videoId=" + videoId +
                ", test='" + test + '\'' +
                '}';
    }

    public UserAnswer() {
    }

    public UserAnswer(int id,int userId, int videoId, String test) {
        this.userId = userId;
        this.videoId = videoId;
        this.test = test;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getVideoId() {
        return videoId;
    }

    public void setVideoId(int videoId) {
        this.videoId = videoId;
    }

    public String getTest() {
        return test;
    }

    public void setTest(String test) {
        this.test = test;
    }
}
